package com.scf.fruit.util;

import com.scf.fruit.enums.ExceptionCodeEnum;

import java.io.Serializable;

/**
 * @author : 孙超飞
 * @title :
 * @description :
 * @copyright :润投科技
 * @date : 2018-05-21 9:03
 */

public class ResponseVo<T> implements Serializable {
    private String code;
    private T  data;
    private String msg;

    public ResponseVo() {
        this.code = ExceptionCodeEnum.EX_SUCCESS.getValue();
        this.msg = ExceptionCodeEnum.EX_SUCCESS.getMsg();
    }

    public ResponseVo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
